package com.yjt.sousou.create.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：83734
 * 时间：2018/12/8
 * 描述：
 */
public class FaultTypeSelect implements Parcelable {
    private String gzlx;//第一级的id
    private String gzlx_type;//第二级id
    private String gzlx_name;//第二级id
    private String gzlx_sum;//数量

    public FaultTypeSelect(String gzlx, String gzlx_type, String gzlx_name, String gzlx_sum) {
        this.gzlx = gzlx;
        this.gzlx_type = gzlx_type;
        this.gzlx_name = gzlx_name;
        this.gzlx_sum = gzlx_sum;
    }

    protected FaultTypeSelect(Parcel in) {
        gzlx = in.readString();
        gzlx_type = in.readString();
        gzlx_name = in.readString();
        gzlx_sum = in.readString();
    }

    public static final Creator<FaultTypeSelect> CREATOR = new Creator<FaultTypeSelect>() {
        @Override
        public FaultTypeSelect createFromParcel(Parcel in) {
            return new FaultTypeSelect(in);
        }

        @Override
        public FaultTypeSelect[] newArray(int size) {
            return new FaultTypeSelect[size];
        }
    };

    public String getGzlx() {
        return gzlx;
    }

    public void setGzlx(String gzlx) {
        this.gzlx = gzlx;
    }

    public String getGzlx_type() {
        return gzlx_type;
    }

    public void setGzlx_type(String gzlx_type) {
        this.gzlx_type = gzlx_type;
    }

    public String getGzlx_name() {
        return gzlx_name;
    }

    public void setGzlx_name(String gzlx_name) {
        this.gzlx_name = gzlx_name;
    }

    public String getGzlx_sum() {
        return gzlx_sum;
    }

    public void setGzlx_sum(String gzlx_sum) {
        this.gzlx_sum = gzlx_sum;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(gzlx);
        dest.writeString(gzlx_type);
        dest.writeString(gzlx_name);
        dest.writeString(gzlx_sum);
    }
}
